package y23.Jun;

import java.util.Scanner;

//输出1000-2000之间所有的闰年
public class Test3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int year = 1000;
        int i = 0;
        for(;year <= 2000;year++){
            if(year % 4 == 0 &&year % 100 != 0||year % 400 == 0){
                System.out.printf("%-6d",year);
                i++;
                if(i % 10 == 0&&i != 0){
                    System.out.println();
                }
            }
        }
    }
}
